<script setup lang="ts">
import {useRoleViewStore} from "@/store/views/sys/admin/roleStore";
import {storeToRefs} from "pinia";

const store = useRoleViewStore()
const {getList} = store
const {queryData} = storeToRefs(store)
</script>

<template>
  <!--  查询 -->
  <x-card>
    <el-form :inline="true" :model="queryData">
      <el-form-item label="关键字">
        <el-input v-model="queryData.keywords" placeholder="关键字查询" clearable/>
      </el-form-item>
      <el-form-item label="状态">
        <el-select
            v-model="queryData.status"
            placeholder="正常"
        >
          <el-option label="全部" :value="-1"/>
          <el-option label="正常" :value="1"/>
          <el-option label="禁用" :value="0"/>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="getList()">查询</el-button>
      </el-form-item>
    </el-form>
  </x-card>
</template>

<style scoped lang="scss">

</style>